#include <iostream>
#include <vector>
using namespace std;
int main(){
    vector<int> nums{1,2,3,4,1};
    cout << nums.capacity() << endl;
    return 0;
}


int main1(){
    vector<int> nums(3);
    for(int i=0; i < nums.size(); i++) nums[i] = i;
    auto begin = nums.begin();
    auto end = nums.end();
    cout << *(end-1) << endl;
    nums.insert(nums.end(), 3);
    cout << *(end-1) << endl;
    cout << *(nums.end()-1) << endl;
    return 0;
}